<?php
namespace app\common\validate;

class BannerValidate extends BasicValidate
{
    // 验证规则
    protected $rule = [
        'id' => 'require|number',
    ];

    protected $message  =   [
        'id.require'=>'数据有误',
        'id.number'=>'数据有误',
    ];

    protected $scene = [
        'formpost' => [],
        'editpost' => ['id'],
    ];
}